﻿using System;
using System.Collections.Generic;
using System.Text;

namespace user.admin.cyt369.com.services.Models
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class User : BaseObject<int>
    {
        /// <summary>
        /// 唯一编码(内部编码)
        /// </summary>
        public string UniqueCode { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string FullName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// 是否强制修改密码
        /// </summary>
        public bool MustResetPassword { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 用户状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 手机号已确认
        /// </summary>
        public bool PhoneNumberConfirmed { get; set; }

        /// <summary>
        /// 邮件
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 邮件已确认
        /// </summary>
        public bool EmailConfirmed { get; set; }

        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool Deleted { get; set; }

        /// <summary>
        /// 是否系统内置账户
        /// </summary>
        public bool IsInternal { get; set; }

        /// <summary>
        /// 访问求错误次数
        /// </summary>
        public int AccessFailedCount { get; set; }

        /// <summary>
        /// 头像和主页面是否通过审核
        /// </summary>
        public bool Audited { get; set; }

        /// <summary>
        /// 用户头像远程URL
        /// </summary>
        public string HeaderUrl { get; set; }

        /// <summary>
        /// 用户头像本地数据
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 用户主页http地址
        /// </summary>
        public string HomePageURL { get; set; }

        /// <summary>
        /// 所属省份
        /// </summary>
        public int? ProvinceID { get; set; }

        /// <summary>
        /// 所属城市
        /// </summary>
        public int? CityID { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime ChangedTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }

        public ICollection<UserConfig> Configs { get; set; } = new HashSet<UserConfig>();


    }
}
